package com.security.springboot.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

    @RequestMapping("/")
    public String home() {
        return "index";
    }

    @RequestMapping("/login-view")
    public String loginView() {
        return "login";
    }

    @RequestMapping(value = "/login-success",produces = "text/plain;charset=UTF-8")
    public String loginSuccess(){
        return "index";
    }
}
